<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://localhost/" />
<title>AdvancedSearchGameRewards</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Advanced Search GameRewards</td></tr>
</thead><tbody>
<tr>
	<td>setTimeout</td>
	<td>45000</td>
	<td></td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/gameRewards/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Create</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Update</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Export</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Delete</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Advanced</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Columns</td>
	<td></td>
</tr>
<!--Advanced search-->
<tr>
	<td>click</td>
	<td>id=more-search-link</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<!--Add first criteria-->
<tr>
	<td>click</td>
	<td>link=Add criteria</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>1 Criteria Selected</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_0_attributeIndexOrDerivedType</td>
	<td>label=Cost in Coins</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_0_cost</td>
	<td>1000</td>
</tr>
<!--Add second criteria-->
<tr>
	<td>click</td>
	<td>link=Add criteria</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>2 Criteria Selected</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_1_attributeIndexOrDerivedType</td>
	<td>label=Created By User</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_1_createdByUser_SelectLink</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=UsersSearchForm_anyMixedAttributes</td>
	<td>Super User</td>
</tr>
<tr>
	<td>keyUp</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>\10</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a</td>
	<td>Super User</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Super User</td>
	<td></td>
</tr>
<tr>
	<td>verifyValue</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>Super User</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a</td>
	<td></td>
</tr>
<!--Add third criteria-->
<tr>
	<td>click</td>
	<td>link=Add criteria</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>3 Criteria Selected</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_2_attributeIndexOrDerivedType</td>
	<td>label=Name</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_2_name</td>
	<td>Test Game Reward ${randomSuffix}</td>
</tr>
<!--Add fourth criteria-->
<tr>
	<td>click</td>
	<td>link=Add criteria</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>4 Criteria Selected</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_3_attributeIndexOrDerivedType</td>
	<td>label=Owner</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_3_owner_SelectLink</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=UsersSearchForm_anyMixedAttributes</td>
	<td>Super User</td>
</tr>
<tr>
	<td>keyUp</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>\10</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a</td>
	<td>Super User</td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>Super User</td>
	<td></td>
</tr>
<tr>
	<td>verifyValue</td>
	<td>UsersSearchForm_anyMixedAttributes</td>
	<td>Super User</td>
</tr>
<tr>
	<td>click</td>
	<td>//div[@id='list-viewmodal']/div[2]/table/tbody/tr[1]/td/a</td>
	<td></td>
</tr>
<!--Add fifth criteria-->
<tr>
	<td>click</td>
	<td>link=Add criteria</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>assertTextPresent</td>
	<td>5 Criteria Selected</td>
	<td></td>
</tr>
<tr>
	<td>select</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_4_attributeIndexOrDerivedType</td>
	<td>label=Quantity Available</td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>type</td>
	<td>id=GameRewardsSearchForm_dynamicClauses_4_quantity</td>
	<td>10</td>
</tr>
<tr>
	<td>click</td>
	<td>id=search-advanced-search</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForText</td>
	<td>//div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a</td>
	<td>Test Game Reward ${randomSuffix}</td>
</tr>
<tr>
	<td>assertText</td>
	<td>//div[@id='list-view']/div[2]/table/tbody/tr[1]/td[2]/a</td>
	<td>Test Game Reward ${randomSuffix}</td>
</tr>
<tr>
	<td>open</td>
	<td>index.php/gameRewards/default</td>
	<td></td>
</tr>
<tr>
	<td>waitForPageToLoad</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>click</td>
	<td>id=clear-search-link</td>
	<td></td>
</tr>
<tr>
	<td>waitForCondition</td>
	<td>selenium.browserbot.getCurrentWindow().jQuery.active == 0</td>
	<td>30000</td>
</tr>
<tr>
	<td>waitForTextNotPresent</td>
	<td>Criteria Selected</td>
	<td></td>
</tr>
</tbody></table>
</body>
</html>